package com.pet.hostpital.wsg.demo.controller;

import com.alibaba.fastjson.JSONObject;
import com.pet.hostpital.wsg.demo.ai.IAApp;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>Title: HelloWorld </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2020</p>
 * <p>Company: SI-TECH </p>
 *
 * @author yuwt
 * @version 1.0
 * @since 2020年03月06日 22:27
 */
@Slf4j
@RestController
public class HelloWorld {


    @Resource
    private IAApp point;

    @GetMapping("/v1/hello")
    public String hello(){

        point.say();
        return "hello world";
    }

    @GetMapping("/vue-element-admin/user/login")
    public JSONObject say(){

        log.info( "登陆。。。。。。。" );
        JSONObject json = new JSONObject();
        json.put( "code","20000" );
        json.put( "token","admin-token" );
        return json;
    }
}
